@echo off

set PROTOBUF_DIR=..\vendor\protobuf-csharp-port\r54
set PROTOBUF_BIN=%PROTOBUF_DIR%\bin

%PROTOBUF_BIN%\protoc.exe -I=%PROTOBUF_DIR%\protos -I=. --cpp_out=..\generated\cpp VisualGTest.proto %PROTOBUF_DIR%\protos\google\protobuf\csharp_options.proto
%PROTOBUF_BIN%\protoc.exe --descriptor_set_out=VisualGTest.protobin -I=%PROTOBUF_DIR%\protos -I=. --include_imports VisualGTest.proto
%PROTOBUF_BIN%\ProtoGen.exe VisualGTest.protobin

move VisualGTestProtos.cs ..\generated\cs\VisualGTestProtos.cs

del /q CSharpOptions.cs
del /q DescriptorProtoFile.cs
del /q VisualGTest.protobin